package com.pazl.check.api.req.dto;

import com.pazl.check.api.dto.CarInfoDto;
import com.pazl.check.api.dto.FinanceBaseInfoDto;
import com.pazl.check.api.dto.UserInfoDto;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @ClassName Req225Dto 2.25 预审批补充进件调用测算服务
 * @Description TODO
 * @Author 陈家辉
 * @Date 2020/5/18 下午 1:54
 * @Version 1.0
 **/
public class Req225Dto implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -2546491313469754180L;

    /**
     * 请求代码
     */
    @NotEmpty(message ="requestCode missing.")
    @Pattern(regexp="1032",message="requestCode error.【1032】")
    private String requestCode;

    /**
     * 用户信息
     */
    @Valid
    @NotNull(message="userInfo missing.")
    private UserInfoDto userInfo;
    /**
     * 车辆信息
     */
    @Valid
    @NotNull(message = "carInfo missing.")
    private CarInfoDto carInfoDto;
    /**
     * 融资基础信息
     */
    @Valid
    @NotNull(message = "financeBaseInfo missing.")
    private FinanceBaseInfoDto financeBaseInfoDto;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getRequestCode() {
        return requestCode;
    }

    public void setRequestCode(String requestCode) {
        this.requestCode = requestCode;
    }

    public UserInfoDto getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfoDto userInfo) {
        this.userInfo = userInfo;
    }

    public CarInfoDto getCarInfoDto() {
        return carInfoDto;
    }

    public void setCarInfoDto(CarInfoDto carInfoDto) {
        this.carInfoDto = carInfoDto;
    }

    public FinanceBaseInfoDto getFinanceBaseInfoDto() {
        return financeBaseInfoDto;
    }

    public void setFinanceBaseInfoDto(FinanceBaseInfoDto financeBaseInfoDto) {
        this.financeBaseInfoDto = financeBaseInfoDto;
    }
}
